﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;

namespace PCSWpfClient.Commands
{
    class ChattyDelegateCommand :DelegateCommand
    {
        public ChattyDelegateCommand(Func<object, bool> canExecute, Action<object> execute) :
            base(execute, canExecute)
        {
            
        }

        public new event EventHandler CanExecuteChanged
        {
            add { CommandManager.RequerySuggested += value; }
            remove { CommandManager.RequerySuggested -= value; }
        }
    }
}
